﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TStage.aspx.cs" Inherits="Workflow.Project.TStage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">模具号</td>
                <td><asp:TextBox ID="txtPJNo" runat="server" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableleft">
                    项目阶段完成创建
                </td>
                <td>
                    <asp:DropDownList ID="ddlStage" runat="server" Enabled="false">
                        <asp:ListItem Value="T1">阶段T1</asp:ListItem>
                        <asp:ListItem Value="T2">阶段T2</asp:ListItem>
                        <asp:ListItem Value="T3">阶段T3</asp:ListItem>
                        <asp:ListItem Value="T4">阶段T4</asp:ListItem>
                        <asp:ListItem Value="T5">阶段T5</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">
                    阶段完成时间
                </td>
                <td><input type="date" id="txtEndDate" name="txtEndDate" disabled="disabled" style="width:174px"/></td>
            </tr>
             <tr>
                <td class="tableleft">同步</td>
                <td><asp:TextBox ID="txtData" runat="server" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="BtnCreate" CssClass="btn btn-primary" runat="server" Text="确定"  OnClick="BtnSubmit1_Click" Visible="false"/>
                    <asp:Button ID="BtnUpdate" CssClass="btn btn-primary" runat="server" Text="确定"   Visible="false" OnClick="BtnUpdate_Click"/>
                    <asp:Button ID="BtnSubmit" CssClass="btn btn-primary" runat="server" Text="数据同步"  OnClick="BtnSubmit2_Click" Visible="false"/>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
    <script>
        $(document).ready(function () {

            <%if(pjCount>0 && statusNo < 1){%>
                $("#txtEndDate").removeAttr("disabled");
            <% }%>

            return false;
        });
     </script>
</body>
</html>
